- @title = t('admin.group_membership_requests')

- if @reqs_by_group.any?
  %table.table
    - @reqs_by_group.each do |group, reqs|
      %tr.row-with-avatar
        %td.avatar
          = avatar_tag(group)
        %td
          = group ? link_to(group.name, group) : '(' + t('groups.deleted') + ')'
        %td
          = link_to t('admin.membership_requests.count', count: reqs.length), group_memberships_path(group), class: 'btn btn-info'
- else
  %p= t('none')
